package com.javajun.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.javajun.custom.BaseService;
import com.javajun.entity.EnterpriseAdmin;
import com.javajun.repository.EnterpriseAdminRepository;

@Service
public class EnterpriseAdminService extends BaseService<EnterpriseAdmin, Integer>{

    @Autowired
    private EnterpriseAdminRepository enterpriseAdminRepository;

    public EnterpriseAdmin findByUsername(String username) {
        return enterpriseAdminRepository.findByUsername(username);
    }
}
